package com.netease.examination.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * designed by destiny
 *
 * @author destiny
 *         e-mail destinywk@163.com
 *         github https://github.com/DestinyWang
 *         oschina https://git.oschina.net/destinywk
 * @version JDK 1.8.0_101
 * @since 2017/3/15 22:00
 */
@Mapper
public interface LoginDAO {

    /**
     * 登录-账号密码校验
     *
     * @param userName  用户名
     * @return          用户名所对应的密码
     */
    @Select({"SELECT password FROM tb_user WHERE user_name = #{userName}"})
    String findPassword(@Param("userName") String userName);

}
